package com.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.model.Post;
import com.dao.PostDao;
import com.service.PostService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 公司岗位表 服务实现类
 * </p>
 *
 * @author Damon
 * @since 2021-05-06
 */
@Service
public class PostServiceImpl extends ServiceImpl<PostDao, Post> implements PostService {

    @Autowired(required = false)
    private PostDao postDao;
    public Page<Post> listPage(Page page) {
        return postDao.listPage(page);
    }

    public Page<Post> listPage(Page page, Post post) {
        return postDao.listPage(page,post);
    }
}
